﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageUser.master" AutoEventWireup="true" CodeFile="dien_thoai_theo_hang.aspx.cs" Inherits="dien_thoai_theo_hang" Title="Điện thoại theo hãng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style6
        {
            width: 100%;
        }
        .style7
        {
            width: 12px;
        }
        </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellspacing="0" class="style6" 
    
        style="width: 100%; height: auto; " 
        align="center">
        <tr>
            <td style="margin: 0px; padding: 0px 0px 0px 30px; height: 30px; background-color: #ff9933; color: #FFFFFF; font-weight: 700; font-family: arial, Helvetica, sans-serif; width: 620px;" 
                align="center">
                THỒNG TIN ĐIỆN THOẠI THEO HÃNG</td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
                    Width="100%" RepeatColumns="3">
                    <ItemTemplate>
                        <table cellpadding="2" class="style6" cellspacing="2" 
                            
                            
                            style="width: 100%; border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;">
                            <tr>
                                <td align="center" class="style7" rowspan="3">
                                
                              
                                    <asp:Image ID="Image3" runat="server" Height="90px" 
                ImageUrl='<%# Eval("Hinh") %>' ToolTip='<%# Eval("TenSp") %>' Width="80px" />
                           
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="padding-left: 7px">
                                    &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" 
                Font-Bold="True" Font-Size="11pt" ForeColor="#0066FF" 
                NavigateUrl='<%# "Chi_tiet_sp.aspx?ten=" + Eval("TenSp")+"&ma="+Eval("TenHang") %>' 
                Text='<%# Eval("TenSp") %>' ToolTip='<%# Eval("TenSP") %>'></asp:HyperLink></td>
                            </tr>
                            <tr>
                                <td style="padding-left: 7px">
                                    Giá :
                                    <asp:Label ID="lblgiasp" runat="server" Font-Bold="False" 
                Font-Size="10pt" ForeColor="Red" Text='<%# Eval("Gia","{0:#,##0} VND") %>' 
                ToolTip='<%# Eval("Gia") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style7">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DIEN_THOAIConnectionString %>" 
                    
                    SelectCommand="SELECT TOP 35 * FROM [SAN_PHAM] WHERE ([TenHang] = @TenHang)" 
                    ProviderName="System.Data.SqlClient">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="TenHang" QueryStringField="tenh" 
                            Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

